public class RandomArray {
    public static int[] array(int j){
        int[] arr= new int[j];
        for (int i = 0; i < j; i++) {
            arr[i]=(int)(Math.random()*1001);
        }
        return arr;
    }
}
